<template>
  <div>
    <span>无是大强</span>
    <input type="text" v-model="value">
    <button @click="high">高亮</button>
    <iframe :src="url" key="url" style="width: 100%; height: 500px;"></iframe>
  </div>
</template>

<script setup>
import {ref} from "vue";

const value = ref("")
const url = ref("/pdfjs/web/viewer.html?file=/123.pdf&word=预览pdf")

const high = () => {
  url.value = "/pdfjs/web/viewer.html?file=/123.pdf&word="+value.value;
};

</script>



<style scoped lang="scss">

</style>